[XEND] Fix reboot for HVM domains if cdrom is empty.
authorAlastair Tse <atse@xensource.com>
Thu, 7 Dec 2006 10:54:43 +0000 (10:54 +0000)
committerAlastair Tse <atse@xensource.com>
Thu, 7 Dec 2006 10:54:43 +0000 (10:54 +0000)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/image.py

index 8d2aab1836db2f137348b60fb309f1be66df91c7..29eea9dc55ae2182f763a3f2e73af69738aabab9 100644 (file)
@@ -338,7 +338,7 @@ class HVMImageHandler(ImageHandler):
         
         for devuuid, (devtype, devinfo) in deviceConfig.items():
             if devtype == 'vbd':
-                uname = devinfo['uname']
+                uname = devinfo.get('uname')
                 if uname is not None and 'file:' in uname:
                     (_, vbdparam) = string.split(uname, ':', 1)
                     if not os.path.isfile(vbdparam):